package boundary.display;

import components.TabPanel;
import entity.Entity;

public abstract class EntityDisplayPanel extends TabPanel {
    
    protected Entity currentEntity;
    
    /**
     * Set current entity as the parameter if it's the correct type and fill
     * the form.
     * 
     * @param entity
     */
    public abstract void setCurrentEntity(Entity entity) throws IllegalArgumentException;
    
    public Entity getCurrentEntity() {
        return currentEntity;
    }
}
